<?php
/**
 * Created by PhpStorm.
 * User: boye009
 * Date: 2016/1/18
 * Time: 13:05
 */

namespace Test\Controller;

use Common\Api\BoyeServiceApi;

class TestPictureGetController extends TestController{

    public function getURL(){
        if(IS_POST){
            $data=array(
                'position'=>I('position',""),
                'api_ver'=>$this->api_ver,
                'notify_id'=>$this->notify_id,
                'type'=>'BY_Picture_getUrl',
                'alg'=>'md5',
            );
            $service = new BoyeServiceApi();

            $result = $service->callRemote("",$data,true);

            $this->parseResult($result);
        }

        $this ->display();
    }

    private function parseResult($result){
        echo "解密后数据：";
        dump($result);
    }
}